package auth

import (
	"mldong/api/base"

	"github.com/gogf/gf/v2/frame/g"
)

type LoginReq struct {
	g.Meta   `path:"/sys/login" tags:"授权管理" method:"post" summary:"登录"`
	UserName string `json:"userName" dc:"用户名称" v:"required#请输入用户名"`
	Password string `json:"password" dc:"密码" v:"required-without:ID#请输入密码"`
}
type LogoutReq struct {
	g.Meta `path:"/sys/logout" tags:"授权管理" method:"post" summary:"退出"`
}
type CaptchaOpenFlagReq struct {
	g.Meta `path:"/sys/getCaptchaOpenFlag" tags:"授权管理" method:"post" summary:"获取登录图片验证码是否启用标识"`
}
type LoginRes struct {
	base.CommonResult
	Data LoginVO `json:"data" dc:"登录凭证信息"`
}
type CaptchaOpenFlagRes struct {
	base.CommonResult
	Data CaptchaOpenFlagVO `json:"data" dc:"返回数据"`
}
